package design.mode.flyweight.item2;

/**
 * 亨元类
 * @author ZhongMingde on 2021/11/4
 */

public class ChessPieceUnit {

  private int id;
  private String text;
  private Color color;

  public static enum Color {RED, BLACK}

  public ChessPieceUnit(int id, String text, Color color) {
    this.id = id;
    this.text = text;
    this.color = color;
  }

}
